﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Right_Index.aspx.cs" Inherits="HZ.Supervise.Web.PageControl.Right_Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>吉林省药品采购监管系统</title>
	<%-- <link rel="stylesheet" type="text/css" href="../Style/main.css" />--%>

	<script type="text/javascript" src="../Scripts/jquery-1.3.2.min.js"></script>

	<script src="../scripts/DynaForm.js" type="text/javascript"></script>

	<script src="../scripts/GenUtils.js" type="text/javascript"></script>

	<link href="../Style/style.css" rel="stylesheet" type="text/css" />

	<script type="text/javascript">
        
        //无权限提示 by：zhangxiong
	    function tipNoPermission() {
	        alert("对不起，您无此项操作权限！");
	    }

	    $(document).ready(function() {
	        //最化化左边框架
	        var frameSet2 = top.document.getElementById("mainFrame");
	        //frameSet2.cols = "0,8,*";
	        frameSet2.cols = "200,8,*"; //modify by 曹鹏 2011年4月27日11:04:52 当页面第一次加载时，让菜单显示
	        //add by 曹鹏 2011年4月26日13:17:31 得到隐藏字段的值，隐藏字段的值是从后台传过来的
	        var hid1Str = document.getElementById("hid1").value.toString();

	        var hid2Str = document.getElementById("hid2").value.toString();

	        var hid3Str = document.getElementById("hid3").value.toString();

	        var hid4Str = document.getElementById("hid4").value.toString();

//	        var hid5Str = document.getElementById("hid5").value.toString();

	        var hid6Str = document.getElementById("hid6").value.toString();

	        var hid7Str = document.getElementById("hid7").value.toString();

	        var hid8Str = document.getElementById("hid8").value.toString();

	        var hid9Str = document.getElementById("hid9").value.toString();

	        var hid10Str = document.getElementById("hid10").value.toString();

	        //绑定无权限事件。  by：zhangxiong
	        $("#WayGo").bind("click", tipNoPermission);
	        $("#MirooAll").bind("click", tipNoPermission);
	        $("#SystemManage").bind("click", tipNoPermission);
	        $("#CompanyAll").bind("click", tipNoPermission);
	        $("#BeforShow").bind("click", tipNoPermission);
	        $("#AreaAll").bind("click", tipNoPermission);
	        $("#HospitalAll").bind("click", tipNoPermission);
	        $("#Report").bind("click", tipNoPermission);
	        $("#Span1").bind("click", tipNoPermission);
	        $("#Self").bind("click", tipNoPermission);
	        $("#GoodsAll").bind("click", tipNoPermission);


	        if (hid1Str.substring(0, hid1Str.indexOf(',')) == "WayGoCheckPass" || hid1Str.substring(0, hid1Str.indexOf(',')) == "") {
	            //趋势走向

	            $("#WayGo").unbind("click");    //判断是否有权限 如果有则移除相应提示！ by：zhangxiong  下面以此类推
	            $("#WayGo").click(function() {

	                CallFunc('../PageControl/MenuLeft.aspx', 'FORM', null, 'Left');

	                if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "县区排名" || hid1Str.substring(0, hid1Str.indexOf(',')) == "") {//add by 曹鹏 2011年4月26日13:13:24 匹配，使进入一个有权限的页面

	                    CallFunc('../Secondphase/ReportArea/ProcureArea.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "城市排名" || hid1Str.substring(0, hid1Str.indexOf(',')) == "") {//add by 曹鹏 2011年4月26日13:13:24 匹配，使进入一个有权限的页面

	                    CallFunc('../Secondphase/ReportArea/RankOfCity.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "医院排名") {


	                    CallFunc('../Secondphase/ProcureHospitalMax.aspx', 'FORM', null, 'Main');

	                    return;

	                }

	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "配送排名") {


	                    CallFunc('../Secondphase/ProcureCompanyPS.aspx', 'FORM', null, 'Main');

	                    return;

	                }

	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "药品排名") {


	                    CallFunc('../Secondphase/ProcureMax.aspx', 'FORM', null, 'Main');

	                    return;

	                }

	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "医院采购类型所占比例") {


	                    CallFunc('../Secondphase/SortSourceRate.aspx', 'FORM', null, 'Main');

	                    return;
	                }

	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "县区采购类型所占比例") {


	                    CallFunc('../Secondphase/SortSourceRateOfArea.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "城市采购类型所占比例") {


	                    CallFunc('../Secondphase/SortSourceRateOfCity.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid1Str.substring(hid1Str.indexOf(',') + 1, hid1Str.length) == "采购单次数") {


	                CallFunc('../Secondphase/SortSourceRateCount.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                
	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "0,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_r.gif";
	            });

	        }
	        if (hid2Str.substring(0, hid2Str.indexOf(',')) == "MirooAllCheckPass" || hid2Str.substring(0, hid2Str.indexOf(',')) == "") {
	            //对比统计

	            $("#MirooAll").unbind("click");
	            $("#MirooAll").click(function() {
	                CallFunc('../PageControl/ComparisonLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../PageControl/Comparison.aspx', 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }

	        if (hid3Str.substring(0, hid3Str.indexOf(',')) == "SystemManageCheckPass" || hid3Str.substring(0, hid3Str.indexOf(',')) == "") {
	            //系统管理
	            $("#SystemManage").unbind("click");
	            $("#SystemManage").click(function() {

	                CallFunc('../PageControl/SystemMenuLeft.aspx', 'FORM', null, 'Left');

	                if (hid3Str.substring(hid3Str.indexOf(',') + 1, hid3Str.length) == "主用户管理" || hid3Str.substring(0, hid3Str.indexOf(',')) == "") {

	                    CallFunc('../Admin/UserList.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid3Str.substring(hid3Str.indexOf(',') + 1, hid3Str.length) == "子用户管理") {

	                    CallFunc('../Admin/ChildUserList.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid3Str.substring(hid3Str.indexOf(',') + 1, hid3Str.length) == "用户资料") {

	                    CallFunc('../Admin/CurrentUserInfo.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid3Str.substring(hid3Str.indexOf(',') + 1, hid3Str.length) == "密码修改") {

	                    CallFunc('../Admin/PasswordUpdate.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }
	        if (hid4Str.substring(0, hid4Str.indexOf(',')) == "CompanyAllCheckPass" || hid4Str.substring(0, hid4Str.indexOf(',')) == "") {
	            //企业统计
	            $("#CompanyAll").unbind("click");
	            $("#CompanyAll").click(function() {

	                var str = '<%=GetSessionID()%>';

	                CallFunc('../PageControl/CompanyLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../Secondphase/ReportCompany/ReportOfCompanyFirstLevel.aspx?sessionid=' + str, 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }
//	        if (hid5Str.substring(0, hid5Str.indexOf(',')) == "BeforShowCheckPass" || hid5Str.substring(0, hid5Str.indexOf(',')) == "") {

//	            //预警提示
//	            $("#BeforShow").unbind("click");
//	            $("#BeforShow").click(function() {

//	                CallFunc('../PageControl/MenulfetWarning.aspx', 'FORM', null, 'Left');

//	                CallFunc('../PageControl/BeforShow.aspx', 'FORM', null, 'Main');

//	                var frameSet2 = top.document.getElementById("mainFrame");

//	                frameSet2.cols = "200,8,*";

//	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
//	            });
//	        }

	        if (hid6Str.substring(0, hid6Str.indexOf(',')) == "AreaAllCheckPass" || hid6Str.substring(0, hid6Str.indexOf(',')) == "") {

	            //地区统计
	            $("#AreaAll").unbind("click");
	            $("#AreaAll").click(function() {
	                CallFunc('../PageControl/AreaLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../Secondphase/ReportArea/ReportOfAreaFirstLevel.aspx', 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }

	        if (hid7Str.substring(0, hid7Str.indexOf(',')) == "HospitalAllCheckPass" || hid7Str.substring(0, hid6Str.indexOf(',')) == "") {

	            //医院统计
	            $("#HospitalAll").unbind("click");
	            $("#HospitalAll").click(function() {
	                CallFunc('../PageControl/HospitalLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../Secondphase/ReportHospital/ReportOfHospitalFirstLevel.aspx', 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }

	        if (hid9Str.substring(0, hid9Str.indexOf(',')) == "ReportAllCheckPass" || hid9Str.substring(0, hid6Str.indexOf(',')) == "") {

	            //报表统计
	            $("#Report").unbind("click");
	            $("#Report").click(function() {
	                CallFunc('../PageControl/StatisticsLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../PageControl/Statistics.aspx', 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }

	        if (hid10Str.substring(0, hid10Str.indexOf(',')) == "IdeaCheckPass" || hid10Str.substring(0, hid10Str.indexOf(',')) == "") {

	            //意见反馈
	            $("#Span1").unbind("click");
	            $("#Span1").click(function() {

	                CallFunc('../PageControl/MenuLeft.aspx', 'FORM', null, 'Left');

	                if (hid10Str.substring(hid10Str.indexOf(',') + 1, hid10Str.length) == "意见编辑" || hid10Str.substring(0, hid10Str.indexOf(',')) == "") {

	                    CallFunc('../Secondphase/Complain.aspx', 'FORM', null, 'Main');

	                    return;

	                }
	                else if (hid10Str.substring(hid10Str.indexOf(',') + 1, hid10Str.length) == "意见信息") {

	                    CallFunc('../Secondphase/ComplainList.aspx', 'FORM', null, 'Main');

	                    return;

	                }

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/ziding.gif";
	            });
	        }


	        if (hid8Str.substring(0, hid8Str.indexOf(',')) == "SelfAllCheckPass" || hid8Str.substring(0, hid6Str.indexOf(',')) == "") {

	            //自定义查询
	            $("#Self").unbind("click");
	            $("#Self").click(function() {
	                CallFunc('../PageControl/MenuLeft.aspx', 'FORM', null, 'Left');

	                CallFunc('../ContentIndex.aspx', 'FORM', null, 'Main');

	                var frameSet2 = top.document.getElementById("mainFrame");

	                frameSet2.cols = "200,8,*";

	                parent.bar2.myarrow.src = "../lib/images/arrow_l.gif";
	            });
	        }
	    });
        
	</script>

</head>
<body>
	<form id="form1" runat="server">
	<div class="right">
		<div class="rightLb1">
			<ul>
				<li class="lbTitle1">
					<img src="../Images/ModalImageAh_New/lb_1.png" /></li>
				<li class="lbCont1">
					<input type="hidden" id="hid7" value='<%=CheckMenuByUserID("医院统计") %>' />
					<a href="javascript:void(0);"><span id="HospitalAll">
						<img src="../Images/ModalImageAh_New/tb_yy.png" /></span> </a>
					<input type="hidden" id="hid4" value='<%=CheckMenuByUserID("企业统计") %>' />
					<a href="javascript:void(0);"><span id="CompanyAll">
						<img src="../Images/ModalImageAh_New/tb_qy.png" /></span></a>
					<input type="hidden" id="hid6" value='<%=CheckMenuByUserID("地区统计") %>' />
					<a href="javascript:void(0);"><span id="AreaAll">
						<img src="../Images/ModalImageAh_New/tb_dq.png" />
					</span></a>
					<input type="hidden" id="hid8" value='<%=CheckMenuByUserID("自定义查询") %>' />
					<a href="javascript:void(0);"><span id="Self">
						<img src="../Images/ModalImageAh_New/tb_zdy.png" /></span></a></li>
			</ul>
		</div>
		<div class="rightLb2">
			<ul>
				<li class="lbTitle2">
					<img src="../Images/ModalImageAh_New/lb_2.png" /></li>
				<li class="lbCont1">
					<input type="hidden" id="hid1" value='<%=CheckMenuByUserID("趋势走向") %>' />
					<a href="javascript:void(0);"><span id="WayGo">
						<img src="../Images/ModalImageAh_New/tb_qs.png" />
					</span></a>
					<input type="hidden" id="hid2" value='<%=CheckMenuByUserID("对比统计") %>' />
					<a href="javascript:void(0);"><span id="MirooAll">
						<img src="../Images/ModalImageAh_New/tb_db.png" /></span></a>
					<input type="hidden" id="hid9" value='<%=CheckMenuByUserID("报表统计") %>' />
					<a href="javascript:void(0);"><span id="Report">
						<img src="../Images/ModalImageAh_New/tb_bb.png" /></span></a></li>
			</ul>
		</div>
		<div class="rightLb3">
			<ul>
				<li class="lbTitle3">
					<img src="../Images/ModalImageAh_New/lb_3.png" /></li>
				<li class="lbCont1">
					<%--<input type="hidden" id="hid5" value='<%=CheckMenuByUserID("预警提示") %>' />
					<a href="javascript:void(0);"><span id="BeforShow">
						<img src="../Images/ModalImageAh_New/tb_yj.png" /></span></a>--%>
					<input type="hidden" id="hid10" value='<%=CheckMenuByUserID("意见反馈") %>' />
					<a href="javascript:void(0);"><span id="Span1">
						<img src="../Images/ModalImage/main_icon5.png" /></span></a>
					<input type="hidden" id="hid3" value='<%=CheckMenuByUserID("系统管理") %>' />
					<a href="javascript:void(0);"><span id="SystemManage">
						<img src="../Images/ModalImageAh_New/tb_xt.png" /></span></a></li>
			</ul>
		</div>
	</div>
	</div>
	<div style="height: 0px; margin: 0px;">
	<%--	<iframe id="msg" name="msg" src="../msgAlert.aspx" title="alert" marginheight="0"
			marginwidth="0" scrolling="no" style="height: 1px; width: 100%" frameborder="0">
		</iframe>--%>
	</div>
	</form>
</body>
</html>
